package GUI;



import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Image;
import javax.imageio.ImageIO;
import javax.imageio.stream.ImageInputStream;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.border.EmptyBorder;
import java.awt.Panel;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.Serializable;
import java.awt.Label;
import java.awt.Toolkit;
import javax.swing.JButton;
import javax.swing.JTextField;
import java.awt.SystemColor;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JPasswordField;
import javax.swing.JTabbedPane;

import Boundry.GenericTools.InputPanel;


public class MainUserFrame extends JFrame{
	
	private JPanel contentPane;
	private Container tablePanel;
	private JPanel buttonPanel;
	private JButton btnBack;
	private JButton btnNext;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					LoginScreen frame = new LoginScreen();
					frame.setVisible(true);
					
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

 public MainUserFrame() 
 {
 	setTitle("User Main Menu");
 	setIconImage(Toolkit.getDefaultToolkit().getImage(LoginScreen.class.getResource("/GUI/Image/12_hardware_dock.png")));
 	
 	this.setSize(500, 500);
 	
 	Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
 	
 	int w = this.getSize().width;
    int h = this.getSize().height;
    int x = (dim.width-w)/2;
    int y = (dim.height-h)/2;

    // Move the window
    this.setLocation(x, y);

    
    getContentPane().setLayout(null);
	/*
	buttonPanel = new JPanel();
	buttonPanel.setBackground(SystemColor.activeCaption);
	buttonPanel.setBounds(10, 233, 430, 56);
	getContentPane().add(buttonPanel);
	buttonPanel.setLayout(null);
	
	btnBack = new JButton("");
	btnBack.setIcon(new ImageIcon(InputPanel.class.getResource("/GUI/Image/1_navigation_back.png")));
	btnBack.setBounds(10, 11, 65, 32);
	buttonPanel.add(btnBack);
	
	btnNext = new JButton("");
	btnNext.setIcon(new ImageIcon(InputPanel.class.getResource("/GUI/Image/1_navigation_forward.png")));
	btnNext.setBounds(355, 11, 65, 32);
	buttonPanel.add(btnNext);
	
	tablePanel = new JPanel();
	tablePanel.setBackground(SystemColor.inactiveCaption);
	tablePanel.setBounds(10, 11, 430, 221);
	getContentPane().add(tablePanel);
	getContentPane().setLayout(null);
	
	JPanel panel = new JPanel();
	panel.setBackground(SystemColor.activeCaption);
	panel.setBounds(10, 11, 464, 439);
	getContentPane().add(panel);
	panel.setLayout(null);
	
	JLabel lblMainMenu = new JLabel("Main Menu");
	lblMainMenu.setFont(new Font("Tahoma", Font.PLAIN, 15));
	lblMainMenu.setBounds(167, 21, 101, 42);
	panel.add(lblMainMenu);
	
	JLabel lblUser = new JLabel("User");
	lblUser.setBounds(59, 47, 46, 14);
	panel.add(lblUser);
	
	JLabel label = new JLabel("");
	label.setIcon(new ImageIcon(MainUserFrame.class.getResource("/GUI/Image/6_social_person.png")));
	label.setBounds(30, 35, 33, 28);
	panel.add(label);
	
	JPanel panel_1 = new JPanel();
	panel_1.setBounds(30, 70, 379, 262);
	panel.add(panel_1);
	panel_1.setLayout(null);
	
	JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
	tabbedPane.setBounds(20, 25, 337, 215);
	panel_1.add(tabbedPane);
	
	JTabbedPane tabbedPane_1 = new JTabbedPane(JTabbedPane.TOP);
	tabbedPane.addTab("New tab", null, tabbedPane_1, null);
	
	JTabbedPane tabbedPane_2 = new JTabbedPane(JTabbedPane.TOP);
	tabbedPane.addTab("New tab", null, tabbedPane_2, null);
	
	JTabbedPane tabbedPane_3 = new JTabbedPane(JTabbedPane.TOP);
	tabbedPane.addTab("New tab", null, tabbedPane_3, null);
	
	JTabbedPane tabbedPane_4 = new JTabbedPane(JTabbedPane.TOP);
	tabbedPane.addTab("New tab", null, tabbedPane_4, null);
	
	JTabbedPane tabbedPane_5 = new JTabbedPane(JTabbedPane.TOP);
	tabbedPane.addTab("New tab", null, tabbedPane_5, null);
	
	JTabbedPane tabbedPane_6 = new JTabbedPane(JTabbedPane.TOP);
	tabbedPane.addTab("New tab", null, tabbedPane_6, null);
	tablePanel.setLayout(null);
    */
 }
}
